package com.example.demo.vo;

import com.example.demo.entity.Admin;
import com.example.demo.entity.User;

public class AdminVO {

    private Long userId;

    private String platForm;

    private String userName;

    private String sex;

    private String address;

    private String phone;

    private Integer deleted;

    public AdminVO(){}

    public AdminVO(User user, Admin admin){
        this.userId = user.getId();
        this.platForm = user.getPlatForm();
        this.userName = user.getUserName();
        this.deleted = user.getDeleted();
        if(admin!=null){
            this.sex = admin.getSex();
            this.address = admin.getAddress();
            this.phone = admin.getPhone();
        }
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPlatForm() {
        return platForm;
    }

    public void setPlatForm(String platForm) {
        this.platForm = platForm;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
